package com.example.courseorder.service;


import com.example.courseorder.domain.Student;
import com.example.courseorder.repository.impl.StudentDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentService {
    @Resource
    private StudentDao studentDao;
    public Student add(Student student){
        studentDao.add(student);
        return  student;
    }
}
